 use "C:\Users\Peter\Documents\My Dropbox\Own Writing\Defamation\Data\defamation.dta", clear

**logit**
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using mainmodels.doc, word dec(2) label
logit support nondemocgri gri shi nondemocracy solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using mainmodels.doc, word dec(2) label append
logit support gri democracy2v shi solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009 if democracy2v==0, cluster(Nation_pk) 
outreg2 using mainmodels.doc, word dec(2) label append
logit support gri democracy2v shi solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009 if democracy2v==1, cluster(Nation_pk) 
outreg2 using mainmodels.doc, word dec(2) label append

**robustness checks**

**alt variables**
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid gdp  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using robust1.doc, word dec(2) label 
logit support gri shi democracy2v solidarity majoritymuslim eu_us_canada aid  YR2007 YR2008 YR2009   , cluster(Nation_pk) 
outreg2 using robust1.doc, word dec(2) label append
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid religion  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using robust1.doc, word dec(2) label append
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid  meast  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using robust1.doc, word dec(2) label append

logit support gri  democracy2v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009 , cluster(Nation_pk) 
outreg2 using robust2.doc, word dec(2) label 
logit support gri shi politydemocracy popMuslim eu_us_canada aid solidarity  YR2007 YR2008 YR2009, cluster(Nation_pk)
outreg2 using robust2.doc, word dec(2) label append 
logit support gri shi polity20 popMuslim eu_us_canada aid solidarity  YR2007 YR2008 YR2009, cluster(Nation_pk)
outreg2 using robust2.doc, word dec(2) label append 
logit support gri shi democracy2v  popMuslim eu_us_canada aid voteindexadditive  YR2007 YR2008 YR2009  , cluster(Nation_pk) 
outreg2 using robust2.doc, word dec(2) label append 
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009 if lowg20all ==0 , cluster(Nation_pk)
outreg2 using robust2.doc, word dec(2) label append
logit support nondemocgri gri shi nondemocracy solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009, cluster(Nation_pk)
outreg2 using robust2.doc, word dec(2) label append

**removing years**
logit support gri shi democracy3v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 , cluster(Nation_pk)
outreg2 using lessyears.doc, word dec(2) label 
logit support gri shi democracy solidarity popMuslim eu_us_canada aid  YR2007 , cluster(Nation_pk) 
outreg2 using lessyears.doc, word dec(2) label append

**mlogit**
mlogit defvote gri shi democracy2v  popMuslim eu_us_canada aid solidarity  YR2007 YR2008 YR2009  , cluster(Nation_pk) b(2)
outreg2 using mlogit.doc, word dec(2) label 

**ologit*
ologit defvote gri shi democracy2v  popMuslim eu_us_canada aid solidarity  YR2007 YR2008 YR2009 , cluster(Nation_pk) 
outreg2 using ologit.doc, word dec(2) label 

**with missing cases. Use different dataset**
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009, cluster(Nation_pk) 
outreg2 using wmissing.doc, word dec(2) label

**substantive significance**
logit support gri shi democracy2v solidarity popMuslim eu_us_canada aid  YR2007 YR2008 YR2009, cluster(Nation_pk) 
margins, dydx(gri) at(gri=(0 2.72 4.91 7.1 8.73)) 
marginsplot, ysc( range (0 0.15)) ylabel(0(0.05)0.2)
margins, dydx(solidarity) at(solidarity=(0 3.42 5.93 8.52 10)) 
marginsplot, ysc( range (0 0.15)) ylabel(0(0.05)0.2)
margins, dydx(popMuslim) at(popMuslim=(0 25.64 62.83 99.9)) 
marginsplot, ysc( range (0 0.15)) ylabel(0(0.05)0.2)
logit support gri shi solidarity majoritymuslim eu_us_canada aid  YR2007 YR2008 YR2009 if democracy2v==0, cluster(Nation_pk) 
margins, dydx(gri) at(gri=(0 1.63 4.07 6.49 8.73)) 
marginsplot, ysc( range (0 0.15)) ylabel(0(0.05)0.2)







